package com.chenglu.android.redpacket.mvp.contract;



import com.chenglu.android.bean.SmsCodeBean;
import com.chenglu.android.common.base.BaseView;
import com.chenglu.android.mine.bean.CollectBean;
import com.chenglu.android.redpacket.bean.OpenPacketBean;
import com.chenglu.android.redpacket.bean.PacketBean;

import java.util.Map;

import io.reactivex.rxjava3.core.Observable;
import okhttp3.RequestBody;

/**
 * @author: lyj
 * @Created by Copyright 2023/7/27 Guangzhou Hongma Technology Co., Ltd. All rights reserved.
 *
 */
public interface RedPacketContract {

    /**
     *
     * @description model
     *
     */

    public interface RedPacketModel{

        Observable<OpenPacketBean> getOpenPacket(String token,String id);

        Observable<PacketBean> getPacketList(Map<String, String> map);

        Observable<PacketBean> getPacketList(String token,Map<String, String> map);


    }


    /**
     *
     * @description view
     *
     */

    interface View extends BaseView {
        @Override
        void showLoading();

        @Override
        void dismissLoading();

        @Override
        void onEmpty(Object tag);

        @Override
        void onError(String errMessage);


        void getOpenPacket(OpenPacketBean bean);

        void getPacketList(PacketBean bean);







    }

    /**
     *
     * @description presenter
     *
     */

    interface RedPacketPresenter {




        void getOpenPacket(String token, String id);

        void getPacketList(Map<String, String> map);

        void getPacketList(String token,Map<String, String> map);


    }
}